local jiang = fk.CreateSkill {

  name = "joyex__jiang",

  tags = {  },

}



jiang:addEffect(fk.TargetSpecified, {
  name = "joyex__jiang",
  anim_type = "drawcard",
  events ={fk.TargetSpecified, fk.TargetConfirmed},
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(jiang.name) and data.firstTarget and
      (data.card.trueName == "slash"or data.card.name == "duel")
  end,
  on_use = function(self, event, target, player, data)
    player:drawCards(1, jiang.name)
  end,
})
jiang:addEffect(fk.TargetConfirmed, {
  name = "joyex__jiang",
  anim_type = "drawcard",
  events ={fk.TargetSpecified, fk.TargetConfirmed},
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(jiang.name) and data.firstTarget and
      (data.card.trueName == "slash"or data.card.name == "duel")
  end,
  on_use = function(self, event, target, player, data)
    player:drawCards(1, jiang.name)
  end,
})

return jiang